﻿<%@ Page Language="C#" MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true" CodeBehind="ShippingRequestList.aspx.cs" Inherits="Runda.CMS.Portal.OrderManagement.ShippingRequestList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
<script src="../Content/global.js" type="text/javascript"></script>     
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
   <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" /> 
    <script src="../Content/Grid/map_grid.js" type="text/javascript" ></script>
    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />
      <link href="../Content/Form/form.css" rel="Stylesheet" type="text/css" />
     <script type="text/javascript">
          function OpenOrder(orderId,shippingRequestId) {
              openMyWin('OrderShipping.aspx?orderId=' + orderId + '&shippingRequestId=' + shippingRequestId, 'Shipping', 800, 600);
          }
   
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
<div class="Container">
        <table id="appFind" class="find" cellspacing="0" cellpadding="0" border="0"> 
            <tbody>
                <tr height="23">
                    <td class="wizHead" colspan="7">
                        <table style="table-layout: fixed; font-size: 9pt" cellspacing="0" cellpadding="0" width="100%" height="100%">
                            <colgroup>
                                <col>
                                <col width="60">
                                <col width="60"> 
                                <tr><td style="color:#ffffff"><b>快速查询</b></td><td class="icMenu mnuRight" noWrap></td></tr>
                        </table>
                    </td>
                </tr>
                <tr id="__appFind_trQuery" height="40">
                    <td class="wizBox1" colspan="7">
                    <table id="__appFind_tbQuery1" style="TABLE-LAYOUT: fixed; FONT-SIZE: 9pt" height="100%" cellSpacing="0" cellPadding="0" width="100%"> 
                        <tr><td align="right" style="width:8%">
                            订单号:</td>
                        <td style="width:17%"><asp:TextBox ID="txtOrderNum" runat="server" Width="120px" CssClass="input"></asp:TextBox></td>
                        <td align="right" style="width:8%">品名:</td>
                         <td style="width:22%"><asp:TextBox ID="txtInventoryName" runat="server" Width="120px" CssClass="input"></asp:TextBox></td>
                        <td align="right" style="width:8%">客户:</td>
                         <td style="width:22%"><asp:TextBox ID="txtCustomerName" runat="server" Width="120px" CssClass="input"></asp:TextBox></td>
                         <td style="width:15%"></td>
                         </tr>
                         <tr>
                         <td align="right">发货单号:</td>
                         <td><asp:TextBox ID="txtRequestShippingNum" runat="server" Width="120px" CssClass="input"></asp:TextBox></td>
                          <td align="right">快递单号:</td>
                         <td><asp:TextBox ID="txtSendBillNum" runat="server" Width="120px" CssClass="input"></asp:TextBox></td>
                         <td align="right">状态:</td>
                         <td>
                             <asp:DropDownList ID="ddlStatus" runat="server">
                             <asp:ListItem Text="--不限--" Value="--不限--" Selected="True" />
                             <asp:ListItem Text="配货" Value="配货" />
                             <asp:ListItem Text="财务发货单审核" Value="财务发货单审核" />
                             <asp:ListItem Text="扫描确认" Value="扫描确认" />
                             <asp:ListItem Text="发货" Value="发货" />
                             <asp:ListItem Text="快递中" Value="快递中" />
                             <asp:ListItem Text="已签收" Value="已签收" />
                             <asp:ListItem Text="完成" Value="完成" />
                             </asp:DropDownList>
                         </td>
                        <td><asp:Button ID="btnSearchBasic" runat="server" Text="查找" CssClass="button" onclick="btnSearch_Click"/></td></tr></table>
                    
                    </td>
                </tr>
            </tbody>
    </table>            
</div>

 <div class="Container">
         
         <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>订单列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>                   
                         
                    </td>       
                      <td class="icMenu mnuRight" nowrap>               
                      <span class="menu"  onclick="OpenStockIn('');">
                            </span>      
                    </td>           
                </tr>
            </tbody>
        </table>       
         
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
             <asp:Repeater ID="RepeaterOrders" runat="server" 
                 onitemcommand="RepeaterOrders_ItemCommand" 
             onitemdatabound="RepeaterOrders_ItemDataBound">
                 <HeaderTemplate>
                    <table id="grid" class="grid" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="header">
                    <td align="middle" style="width:90px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">发货单号</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="left" style="width:90px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">订单号</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>                  
                     <td align="left" style="width:200px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">客户名称</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                    <td align="left"style="width:120px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">品名</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>                      
                    <td align="left" style="width:100px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">规格</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="left" style="width:100px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">批号</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="left" style="width:100px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">效期</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>                                                                                   
                     <td align="right" style="width:60px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">发货数量</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="left" style="width:100px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">状态</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                       <td align="left" style="width:100px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">快递公司</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                        <td align="left" style="width:150px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">快递号</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                       <td align="middle" style="width:100px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">预计到达日期</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                      <td align="middle" style="width:100px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">签收时间</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                      <td align="middle" style="width:60px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">签收人</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                      <td>
                       <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">操作</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                    <td width="14">
                        <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif" AlternateText="刷新列表"/> 
                    </td>
                </tr>
                 </HeaderTemplate>
                 <ItemTemplate>
                  <tr class="data" ondblclick="OpenOrder('<%#Eval("billNo") %>','<%#Eval("cVouchId") %>')" onclick="handleClick()" >
                    <td> <asp:Label runat="Server" ID="shippingRequestId" Text='<%#Eval("cVouchId") %>'></asp:Label></td>   
                    <td>
                      <asp:Label runat="Server" ID="orderDetailId" Visible="false" Text='<%#Eval("orderDetailId") %>'></asp:Label>                  
                              <asp:HyperLink ID="billNo" runat="server" Target="_blank" Text='<%#Eval("billNo") %>' NavigateUrl='<%# "OrderList.aspx?orderId="+Eval("billNo") %>'></asp:HyperLink>
                    </td>                   
                    <td class="tdautolen"><asp:Label ID="customerName" runat="server" Text='<%#Eval("customerName") %>' ToolTip='<%#Eval("customerName") %>'></asp:Label>
                        <asp:Label ID="customerID" runat="server" Text='<%#Eval("customerID") %>' Visible="false"></asp:Label></td>               
                    <td class="tdautolen"><asp:Label ID="inventoryName" runat="server" Text='<%#Eval("inventoryName") %>' ToolTip='<%#Eval("inventoryName") %>'></asp:Label>
                            <asp:Label ID="inventoryCode" runat="server" Text='<%#Eval("inventoryCode") %>' Visible="false"></asp:Label></td>                                            
                    <td class="tdautolen"><asp:Label ID="inventoryStandard" runat="server" Text='<%#Eval("inventoryStandard") %>'></asp:Label></td> 
                    <td class="tdautolen"><asp:Label ID="cBatchCode" runat="server" Text='<%#Eval("BatchCode") %>'></asp:Label></td> 
                    <td class="tdautolen"><asp:Label ID="cVDate" runat="server" Text='<%#Eval("VDate") %>'></asp:Label></td>           
                    <td><div style="text-align:right"><asp:Label ID="sendQuantity" runat="server" Text='<%#Eval("sendQuantity") %>'></asp:Label></div></td>
                    <td class="tdautolen"><asp:Label ID="cStatus" runat="server" Text='<%#Eval("Status") %>'></asp:Label></td> 
                    <td><asp:Label ID="deliverCompany" runat="server" Text='<%#Eval("deliveryCompany") %>'></asp:Label></td>
                    <td><asp:Label ID="deliverNum" runat="server"  Text='<%#Eval("deliveryNum") %>'></asp:Label></td>
                    <td><asp:Label ID="preReceivedDate" runat="server" Text='<%#Eval("preReceiveDate") %>'></asp:Label></td>
                    <td><asp:Label ID="receiveDate" runat="server"  Text='<%#Eval("receiveDate") %>'></asp:Label></td>
                    <td><asp:Label ID="receiveMan" runat="server"  Text='<%#Eval("receivedMan") %>'></asp:Label></td>
                    <td></td>
                    <td></td>
                </tr>
                 </ItemTemplate>
                 <FooterTemplate>
                    </tbody>
                </table>  
                 </FooterTemplate>
             </asp:Repeater>    
               <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator"   PageSize="15"
                            CurrentPageButtonClass="cpb" 
                            CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
                            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                            ShowCustomInfoSection="Left" Width="100%" LayoutType="Table"  
                            SubmitButtonClass="but" SubmitButtonText="转到" OnPageChanged="AspNetPager1_PageChanged">
                        </webdiyer:AspNetPager>    
         </div>       
</asp:Content>
